package main

import (
	"fmt"
)

const N int = 100

var squareOfSums int = 0
var sumOfSquares int = 0

func main() {

	for i := 1; i <= N; i++ {
		sumOfSquares += (i * i)
		squareOfSums += i
	}
	squareOfSums = squareOfSums * squareOfSums
	fmt.Println("squareOfSums: ", squareOfSums)
	fmt.Println("sumOfSquares: ", sumOfSquares)
	fmt.Println("Difference between square of sums - sum of squares: ", squareOfSums-sumOfSquares)
}
